"""
	函数介绍
        在写函数之前来复习一段代码:比如曾经写过的猜拳
"""

import random
import time

print("游戏规则:1.石头 2.剪刀 3.布")
playOneChoose = input("玩家一请出拳:>>>")

if playOneChoose == "1":
   temp = "石头"
elif playOneChoose == "2":
    temp = "剪刀"
elif playOneChoose == "3":
    temp = "布"
else:
    pass

print("玩家一出拳:{}".format(temp))

print("玩家二思考中",end="")
for i in range(1,3):
    print(".",end="")
    time.sleep(1)

print()
playTwoChoose = random.randint(1,3)

if playTwoChoose == "1":
    temp = "石头"
elif playTwoChoose == "2":
    temp = "剪刀"
elif playTwoChoose == "3":
    temp = "布"
else:
    pass

print("玩家二出拳:{}".format(temp))